import router from '@system.router';
export default {
    data: {
        title: "Hello HarmonyOS",
        isHarmonyOS: true
    },

    switchTitle() {
        let that = this;
        that.title = that.isHarmonyOS ? "Hello World" : "Hello HarmonyOS";
        that.isHarmonyOS = !that.isHarmonyOS;
    },

    back(){
        router.push ({
            uri:'pages/First/First', // 跳转到注册页面
        })
    }
}